package com.bdan.t382.dao.imp;

import com.bdan.t382.dao.PetDao;
import com.bdan.t382.entity.Pet;
import org.springframework.stereotype.Repository;
 import org.springframework.stereotype.Component;
// @Component("petDao")

 @Repository("petDaoMySQL")

public class PetDaoMySQLImpl implements PetDao {
    @Override
    public int insert(Pet pet) {
        System.out.println("将宠物“"+pet.getName()+"”插入到mysql数据库");
        return 1;
    }
}
